package com.xmy.cultivate.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 * 招生战队成员
 * </p>
 *
 * @author min
 * @since 2023-02-10
 */
@TableName("enroll_team_member")
@Data
public class EnrollTeamMember implements Serializable {

    private static final long serialVersionUID = 1L;

    private Long id;

    private Long teamId;

    private Long teacherId;

    /**
     * 开始日期
     */
    private LocalDate startDate;

    /**
     * 结束日期
     */
    private LocalDate endDate;

    /**
     * 是否队长
     */
    private Integer isCaptain;

    /**
     * 个人目标
     */
    private Integer goalNum;

    /**
     * 突破目标
     */
    private Integer breachNum;

    /**
     * 0表示移出战队，1目前在战队
     */
    private Integer status;

    @TableLogic
    private Integer deleted;

    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createdAt;

    @TableField(exist = false)
    private String staffName;
}
